package com.ruihang.ijkplaylib.widget;

import android.support.annotation.NonNull;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

/**
 * Created by rh008 on 2017/7/20.
 */

public interface IGPlayBaseController {
    /**
     * 添加view，可做init操作
     *
     * @return
     */
    void onAddingView(GPlayerView playerView, LayoutInflater inflater, ViewGroup group);

    boolean onShowPanl(boolean isPortrait, boolean isLive, boolean isPlaying);

    void onHidePanl(boolean isPortrait, boolean isLive, boolean isPlaying);

    void onPortrait();

    void onLandscape();

    void onDetach(ViewGroup group);

    void onDestory();

    void onPlayerHide(GPlayerView playerView);

}
